package cn.wolfcode.service;

import cn.wolfcode.domain.TravelComment;
import cn.wolfcode.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * 游记评论服务接口
 */
public interface ITravelCommentService {
    void save(TravelComment travelComment);
    void update(TravelComment travelComment);
    void delete(String id);
    TravelComment get(String id);
    List<TravelComment> findAll();

    /**
     * 分页查询
     * @param qo
     * @return
     */
    Page<TravelComment> query(TravelCommentQuery qo);

    /**
     * 添加或更新
     * @param travelComment
     */
    void saveOrUpdate(TravelComment travelComment);

    /**
     * 查看游记评论列表
     * @param travelId
     * @return
     */
    List<TravelComment> queryByTravelId(String travelId);
}
